import request from '@/utils/request'

// 查询销假申请列表
export function listOaLeaveOff(query) {
    return request({
        url: '/leaveOff/oaLeaveOff/list',
        method: 'get',
        params: query
    })
}

// 查询销假申请详细
export function getOaLeaveOff(id) {
    return request({
        url: '/leaveOff/oaLeaveOff/' + id,
        method: 'get'
    })
}

// 保存销假申请
export function saveOaLeaveOff(data) {
    return request({
        url: '/leaveOff/oaLeaveOff/save',
        method: 'post',
        data: data
    })
}

// 删除销假申请
export function delOaLeaveOff(id) {
    return request({
        url: '/leaveOff/oaLeaveOff/' + id,
        method: 'delete'
    })
}

// 导出销假申请
export function exportOaLeaveOff(query) {
    return request({
        url: '/leaveOff/oaLeaveOff/export',
        method: 'get',
        params: query
    })
}
